FROM python:3.11.7-slim-bullseye
RUN apt-get update && apt-get install -y libgl1-mesa-glx ghostscript python3-tk libglib2.0-0
WORKDIR /app
COPY . .
RUN pip install --upgrade pip && pip install -r requirements.txt
EXPOSE 5000
CMD ["gunicorn", "-b 0.0.0.0:5000", "app:app", "--access-logfile", "-", "--error-logfile", "-"]
